package cn.lei;

import java.util.List;

public class PageBean2 {
	//当前是第几页
		private Integer pageNo;
		//一页有多少条记录
		private Integer pageSize;
		//总记录数         
		private Integer totalCount;
		//一共有多少页
		//totalPage = Math.ceil(totalCount/pageSize);相当于让他向上取整
		private Integer totalPage;
		//当前页的数据
		private List<Banji> list;
		public Integer getPageNo() {
			return pageNo;
		}
		public void setPageNo(Integer pageNo) {
			this.pageNo = pageNo;
		}
		public Integer getPageSize() {
			return pageSize;
		}
		public void setPageSize(Integer pageSize) {
			this.pageSize = pageSize;
		}
		public Integer getTotalCount() {
			return totalCount;
		}
		public void setTotalCount(Integer totalCount) {
			this.totalCount = totalCount;
		}
		public Integer getTotalPage() {
			return totalPage;
		}
		public void setTotalPage(Integer totalPage) {
			this.totalPage = totalPage;
		}
		public List<Banji> getList() {
			return list;
		}
		public void setList(List<Banji> list) {
			this.list = list;
		}
		@Override
		public String toString() {
			return "PageBean [pageNo=" + pageNo + ", pageSize=" + pageSize + ", totalCount=" + totalCount + ", totalPage="
					+ totalPage + ", list=" + list + "]";
		}

}
